<script setup lang="ts">
import { Link } from '@inertiajs/vue3'
</script>

<template>
  <div>
    <Link href="/prefetch/swr/2" prefetch cache-for="1s">1s Expired</Link>
    <Link href="/prefetch/swr/3" prefetch :cache-for="1000">1s Expired (Number)</Link>
    <Link href="/prefetch/swr/4" style="margin: 0 20px" prefetch :cache-for="['1s', '3s']">1s Stale, 2s Expired</Link>
    <Link href="/prefetch/swr/5" prefetch :cache-for="[1000, 3000]"> 1s Stale, 2s Expired (Number) </Link>
    <div>
      <slot />
    </div>
  </div>
</template>
